﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TimeTracker.Model;

/// OBSOLATE CODE, DELETE IT
namespace TimeTracker.WebUI.Controllers
{
    public class Workspace
    {
        public DateTime today { get; set; }
        public DateTime time { get; set; }
        public List<Activity> activities { get; set; }
    }

    public class WorkspaceController : ApiBaseController
    {
        // GET: /api/workspace
        public Workspace Get()
        {
            Workspace workspace = new Workspace();
            workspace.activities = new List<Activity>();
            workspace.activities.Add( new Activity {
                Id = 0,
                Name = "test",
                Description = "!!!!!!"
            });
            workspace.activities.Add(new Activity {
                Id = 1,
                Name = "Tests 2",
                Description = "trololo"
            });
            return workspace;
        }

    }
}
